/*
 * @Author: 秦福凯
 * @Date: 2024-07-23 18:39:46
 * @Description: 公共组件批量注册
 * @FilePath: \研发云实验小学OA\sx-school-oa\sx-school-oa\src\components\common\index.ts
 */
// 全局注册一些公共组件
import Table from '@/components/common/table/table.vue'
// 输入框
import Input from '@/components/common/input/input.vue'
// 输入框
import NumberInput from '@/components/common/numberInput/index.vue'
// 下拉框
import Select from '@/components/common/select/select.vue'
// 按钮
import Button from '@/components/common/button/button.vue'
// 弹窗
import Dialog from '@/components/common/dialog/dialog.vue'
// 分页
import Pagination from '@/components/Pagination/index.vue'
import Pagination2 from '@/components/common/pagenation/PageNation.vue'
// 表单
import From from '@/components/common/form/form.vue'
// 多附件上传
import FileTbale from '@/components/common/fileTable/fileTable.vue'


// 个人信息卡片
import IdCard from '@/components/common/idCard/idCard.vue'

// 联级选择器
import Cascader from '@/components/common/cascader/cascader.vue'

// 文件导入组件
import FileUpload from '@/components/common/importFile/importFile.vue'

// 3D旋转
import Tswiper from '@/components/common/3dSwiper/swiper.vue'

// 字典tag
import Tag from '@/components/common/tag/tag.vue'

// ICON 阿里icon
import Icon from '@/components/common/SvgIcon/SvgIcon.vue'

import Drawer from '@/components/common/drawer/drawer.vue'

import rechargeDialog from '@/components/common/RechargeDialog/RechargeDialog.vue'
 

export const componentPlugin = {
  install(app:any){
    app.component('u-table',Table)
    app.component('u-input',Input)
    app.component('u-input-number',NumberInput)
    app.component('u-select',Select)
    app.component('u-button',Button)
    app.component('u-dialog',Dialog)
    // app.component('u-page-nation',Pagination)
    app.component('u-page-nation',Pagination2)
    app.component('u-form',From)
    app.component('u-fileTable',FileTbale)
    app.component('u-idCard',IdCard)
    app.component('u-cascader',Cascader)
    app.component('u-file-upload',FileUpload)
    app.component('u-t-swiper',Tswiper)
    app.component('u-tag',Tag)
    app.component('u-icon',Icon)
    app.component('u-ThemeDrawer',Drawer)
    app.component('u-rechargeDialog',rechargeDialog)

  }
}
